home *** CD-ROM | disk | FTP | other *** search
/ Developer Helper 1: Phil & Dave's Excellent CD / Excellent CD HFS.raw / Moof / Goodies / MPW Goodies / MPW Goodies⁄DTS / Docs & Help Files / OSErr Notes < prev    next >
Text File  |  2022-08-05  |  2KB  |  51 lines

  1. OSErr …    an MPW tool to find the meaning of Macintosh result codes.
  2.  
  3.     The problem is that Macintosh result codes are peppered through several
  4.     thick volumes of information.  This tool is an attempt to put them into
  5.     one place.  In addition, the tool can be modified to include result codes
  6.     added to MacOS.
  7.  
  8. COPYRIGHT:
  9.  
  10.     Copyright, 1988. Wynn Wagner III.  All rights reserved.
  11.     
  12.     This application and its associated source and documentation may be given
  13.     away.  It may not be sold, and the code may not be included in any material
  14.     that is sold.
  15.     
  16. WARRANTY/GUARANTEE:
  17.  
  18.     Be serious.  If you break this application, you own both pieces.
  19.  
  20. INSTALLING OSErr:
  21.  
  22.     Put the application "OSErr" into your MPW "Tools:" folder.
  23.  
  24. USING OSErr:
  25.  
  26.     You must be running MPW.
  27.     Type "OSErr" followed by the negative number returned by a MacOS function,
  28.     then press ENTER or COMMAND-RETURN.  If OSErr understands the number, it 
  29.     will display its meaning using StdOut.  In most cases, you will also get
  30.     some cross-reference information that tells you which Apple technical document
  31.     you can look at for more information.
  32.  
  33. MODIFYING OSErr Messages:
  34.  
  35.     This requires the application REZ, available from Apple.
  36.  
  37.     The error messages are contained in several 'STR#' resources.  Each resource
  38.     has room for 100 messages.
  39.  
  40.     To add a new message to an existing 'STR#' resource, just type the text.
  41.  
  42.     If you need to add a new 'STR#' resource, you will also have to add an entry
  43.     in an Error Look Up Table resource (or 'eLUt').  The 'eLUt' is an array
  44.     that includes the bottom number of a 'STR#' resource and the 'STR#' resource
  45.     number.  For example, if "STR# 4000" includes the text for errors -101 to -200,
  46.     the 'eLUt' entery would be "101,4000".
  47.  
  48. MODIFYING OSErr Source:
  49.  
  50.     Requires MPW C, V3.
  51.